import { defHttp } from '/@/utils/http/axios';
import { useMessage } from "/@/hooks/web/useMessage";

const { createConfirm } = useMessage();

enum Api {
	uploadQr = '/journey/bsTravelgroupMaintuortravellinerecord/uploadQr',
	uploadStats = '/journey/bsTravelgroupMaintuortravellinerecord/editTravelStatus',
	updateOrderStats = '/journey/bsTravelgroupMaintuortravellinerecord/editOrderStatus',
	
}

/**
 * 保存或者更新
 * @param params
 */
export const uploadStats = (params) => {
	return defHttp.post({ url: Api.uploadStats, params });
}

export const uploadQr = (params) => {
	return defHttp.post({ url: Api.uploadQr, params });
}

export const updateOrderStats = (params) => {
	return defHttp.post({ url: Api.updateOrderStats, params });
}